<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Configuração</h2>

            <p:panel styleClass="container_24 clearfix " style="background: none; border: none;"> 
                <h:form id="form" acceptcharset="utf-8">
                    <p:growl id="msg" life="3000" autoUpdate="true"/>

                    <p:menu> 
                        <p:submenu label="MENU">  
                            <p:menuitem value="Salas" url="indexsala.xhtml" icon="ui-icon-disk" />
                            <p:menuitem value="Usuário" url="indexusuario.xhtml" 
                                        icon="ui-icon-disk" rendered="#{managerLayout.admin}" />
                            <p:menuitem value="Alterar Senha" url="alterarlogin.xhtml?usuLo=#{managerLayout.currentUser.id}" 
                                        icon="ui-icon-disk" rendered="#{not managerLayout.admin}" />
                        </p:submenu>
                    </p:menu> 
                </h:form>
            </p:panel> 
        </ui:define>
    </ui:composition>
</html>